//
//  NSMutableAttributedString+Com_StringAttribute.h
//  WEIXUE_RN
//
//  Created by WangGuoli on 2017/11/17.
//  Copyright © 2017年 zhanghao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Com_StringAttribute.h"
#import "Com_FontStringAttribute.h"
#import "Com_ForegroundColorStringAttribute.h"
#import "Com_LineSpaceStringAttribute.h"
@interface NSMutableAttributedString (Com_StringAttribute)
/**
 *  添加富文本对象
 *
 *  @param stringAttribute 实现了StringAttributeProtocol协议的对象
 */
- (void)addStringAttribute:(Com_StringAttribute *)stringAttribute;
/**
 *  消除指定的富文本对象
 *
 *  @param stringAttribute 实现了StringAttributeProtocol协议的对象
 */
- (void)removeStringAttribute:(Com_StringAttribute *)stringAttribute;


/**
 添加 字体属性
 
 @param font 字体
 @param partStr 部分字符串
 @param allStr 所有的字符串
 @param isRecursive 是否递归去添加属性
 */
- (void)addFontAttributeWithFont:(UIFont *)font
                         partStr:(NSString *)partStr
                          allStr:(NSString *)allStr
                     isRecursive:(BOOL)isRecursive;
/**
 添加 字体颜色属性
 
 @param font 字体
 @param partStr 部分字符串
 @param allStr 所有的字符串
 @param isRecursive 是否递归去添加属性
 */
- (void)addForegroundColorAttributeWithColor:(UIColor *)color
                                     partStr:(NSString *)partStr
                                      allStr:(NSString *)allStr
                                 isRecursive:(BOOL)isRecursive;


- (void)addLineSpaceAttributeWithSpace:(CGFloat )lineSpace textAlignment:(NSTextAlignment)textAlignment
                                     partStr:(NSString *)partStr
                                      allStr:(NSString *)allStr
                                 isRecursive:(BOOL)isRecursive;


- (void)appImgWithOrigin:(UIImage *)img Height:(CGFloat)height;
@end
